package com.itheima.commons.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Auther: alongchan
 * @Date: 2021/12/19 14:37
 * @Description: 消息管理类中实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Document(collection = "message")
public class Message implements Serializable {
    //发布人Id
    private Long userId;
    //动态id
    private ObjectId publishId;
    //审核状态
    private String state;
    //是否置顶
    private String topState;
    //举报数
    private Integer reportCount;
    //转发数
    private Integer forwardingCount;
    //创建时间
    private Long created;

}
